home *** CD-ROM | disk | FTP | other *** search
- This package is the source and executable files for my quadcode
- implementation, including a simple demo program, as published in
- The C Users Journal, August 1992. Author:
- Kenneth Van Camp
- RD #1 Box 1255
- East Stroudsburg, PA 18301
- (717)223-8620
-
- Briefly, a quadcode is a hierarchical data structure that can be used
- to represent graphical areas. They make it easy and fast to relate
- territory boundaries to their interiors, which is quite a bit more
- complicated than it sounds. The demo supplied demonstrates this
- ability by displaying a familiar territory and allowing the user to
- move a cursor over the display. Every time the cursor is moved, a
- small status box at the upper-left corner of the display is updated
- to show whether the cursor is inside or outside of the territory.
- This is done by interrogating the entire quadcode list, rather than
- using any graphical shorcuts, to prove that quadcodes are indeed fast
- to access.
-
- To run the demo under Windows, just type:
- win qcdemow
- There are no command-line options on the Windows version, but you
- can toggle quadcode shrinkage with the Options menu. The shrinkage
- option shrinks the size of each quadcode before it is displayed, so
- the boundaries between quadcodes can be easily seen. This is
- strictly a display option, and has no effect on the interrogation
- of the quadcode list.
-
- To run the demo under DOS, you must have the *.BGI files in your
- current directory (or in a directory named by the environment
- variable BGIDIR). Then type:
- qcdemod
- Alternatively, type 'qcdemod -n' to plot without quadcode shrinkage.
- Press Escape to exit, or press 's' to toggle the cursor speed between
- fast and slow.
-
- Following are the contents of this diskette:
-
- qc.doc This file
- makefile Makefile to compile the EXE's using Borland C++
- qc.cpp Quadcode class source
- qc.h Quadcode & region header file
- qcreg.cpp Region class source
- qcdemod.cpp Demo program source for MSDOS
- qcdemod.exe Demo program executable for MSDOS
- qcdemow.cpp Demo program source for Windows
- qcdemow.h Header file for windows demo
- qcdemow.exe Demo program executable for Windows
- qcdemow.rc Resource file for Windows program
- qcdemow.def Windows definition file for QCDemoW
- winincl.cpp Used to precompile Windows header file
- att.bgi Borland Graphic Interface file (used by QCDemoD)
- cga.bgi /
- egavga.bgi /
- herc.bgi /
- ibm8514.bgi /
- pc3270.bgi /
-